package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class ClassesSubjectTeacherVo {
    /**
     * 课程id
     */
    private Integer subjectId;
    /**
     * 课程名称
     */
    private String subjectName;
    /**
     * 教师id
     */
    private Integer teacherId;
    /**
     * 教师名字
     */
    private String teacherName;
    /**
     * 教师账号
     */
    private String teacherAccount;

    @Override
    public String toString() {
        return "ClassesSubjectTeacherVo{" +
                "subjectId=" + subjectId +
                ", subjectName='" + subjectName + '\'' +
                ", teacherId=" + teacherId +
                ", teacherName='" + teacherName + '\'' +
                ", teacherAccount='" + teacherAccount + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClassesSubjectTeacherVo that = (ClassesSubjectTeacherVo) o;
        return Objects.equals(subjectId, that.subjectId) && Objects.equals(subjectName, that.subjectName) && Objects.equals(teacherId, that.teacherId) && Objects.equals(teacherName, that.teacherName) && Objects.equals(teacherAccount, that.teacherAccount);
    }

    @Override
    public int hashCode() {
        return Objects.hash(subjectId, subjectName, teacherId, teacherName, teacherAccount);
    }
}
